package com.jadows.tdog.service;

import com.jadows.tdog.base.PageRecords;
import com.jadows.tdog.domain.ChatMessage;
import com.jadows.tdog.po.ChatMessagePagePo;
import com.jadows.tdog.repository.ChatMessageRepository;

import java.util.List;
import java.util.Map;

/**
 * @author taojiacheng
 */
public interface ChatMessageService {

    PageRecords<ChatMessage> pageChatMessage(ChatMessagePagePo chatMessagePagePo);

    /**
     * 查找联系人的最近10条消息
     */
    Map<String, ChatMessageRepository.ChatMessageGroup> findLast10Messages(List<String> unionIds);

}
